feat: 1.3.0 thirteen new pages, charts, tooltips and error analysis
Release / Plan (reuse the published image?) (push) Successful in 3s
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and vet (push) Successful in 28s
CI / Dependency audit (push) Successful in 20s
CI / Tests (Linux, race detector) (push) Successful in 1m10s
Release / ci (push) Successful in 1m10s
Release / Build image (arm64) (push) Successful in 55s
Release / Build image (amd64) (push) Successful in 1m16s
Release / Publish tags (push) Successful in 14s
Release / Gitea release (push) Skipped
Release / Plan (reuse the published image?) (push) Successful in 3s
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and vet (push) Successful in 28s
CI / Dependency audit (push) Successful in 20s
CI / Tests (Linux, race detector) (push) Successful in 1m10s
Release / ci (push) Successful in 1m10s
Release / Build image (arm64) (push) Successful in 55s
Release / Build image (amd64) (push) Successful in 1m16s
Release / Publish tags (push) Successful in 14s
Release / Gitea release (push) Skipped
New pages grouped in the rail (Monitor, Investigate, Analyze, Operate, Reports): Services (SLO, Apdex, latency app vs proxy), Sessions (stage funnel), Campaigns, Event search, MITRE ATT&CK matrix, Evolution, Concentration (Pareto, Gini), Survival (Kaplan-Meier per attack episode, recidivists), Where errors come from (application vs failed attack vs proxy vs client), Protocols and TLS, Defense (fail2ban, SSH, blocklist), Integrity, and a printable executive report. Chart library (donut, radar, stacked area, bars, heatmap, gauge), glossary with accessible "?" tooltips, self-explanatory category names (nonexistent page 404), page loader through pages.json. Unique visitors fixed: real browsers opening a page, one per IP per day, deduplicated across domains, with non-human clients counted apart. Anonymous legitimate visits on the Live page (?visits=1, no IP). Traefik origin, service, protocol and TLS fields parsed. Paths and Referer paths drop e-mail and token segments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b7462c14fa
commit
2ebda1e4d7
79 files changed
+9091
-171
No files matched your search
@@ -51,8 +51,23 @@ type traefikLine struct {
|
||||
Referer string `json:"request_Referer"`
|
||||
FetchSite string `json:"request_Sec-Fetch-Site"`
|
||||
FetchDest string `json:"request_Sec-Fetch-Dest"`
|
||||
SecPurpose string `json:"request_Sec-Purpose"`
|
||||
Purpose string `json:"request_Purpose"`
|
||||
Duration int64 `json:"Duration"`
|
||||
Size int64 `json:"DownstreamContentSize"`
|
||||
|
||||
OriginStatus int `json:"OriginStatus"`
|
||||
OriginDur int64 `json:"OriginDuration"`
|
||||
Overhead int64 `json:"Overhead"`
|
||||
OriginSize int64 `json:"OriginContentSize"`
|
||||
Retries int `json:"RetryAttempts"`
|
||||
Router string `json:"RouterName"`
|
||||
Service string `json:"ServiceName"`
|
||||
Proto string `json:"RequestProtocol"`
|
||||
Scheme string `json:"RequestScheme"`
|
||||
TLSVer string `json:"TLSVersion"`
|
||||
TLSCipher string `json:"TLSCipher"`
|
||||
EntryPoint string `json:"entryPointName"`
|
||||
}
|
||||
|
||||
// ParseTraefik parses one Traefik JSON access log line.
|
||||
@@ -82,6 +97,15 @@ func ParseTraefik(line []byte) (Event, error) {
|
||||
DurationNS: l.Duration, Bytes: l.Size, Referer: clip(l.Referer, 300),
|
||||
}
|
||||
ev.Framed = Framed(l.FetchSite, l.FetchDest)
|
||||
ev.OriginStatus, ev.OriginNS, ev.OverheadNS, ev.OriginBytes, ev.Retries = l.OriginStatus, l.OriginDur, l.Overhead, l.OriginSize, l.Retries
|
||||
ev.Router, ev.Service = clip(l.Router, 64), clip(l.Service, 64)
|
||||
ev.Proto, ev.Scheme, ev.TLSVer, ev.TLSCiph = clip(l.Proto, 12), clip(l.Scheme, 8), clip(l.TLSVer, 8), clip(l.TLSCipher, 64)
|
||||
ev.EntryPoint, ev.FetchSite = clip(l.EntryPoint, 64), clip(strings.ToLower(l.FetchSite), 16)
|
||||
ev.FetchDest = strings.ToLower(strings.TrimSpace(l.FetchDest))
|
||||
if len(ev.FetchDest) > 20 {
|
||||
ev.FetchDest = ev.FetchDest[:20]
|
||||
}
|
||||
ev.Prefetch = strings.Contains(strings.ToLower(l.SecPurpose+" "+l.Purpose), "prefetch")
|
||||
c := Classify(l.Method, l.Path, l.Status)
|
||||
ev.Cat, ev.Soft, ev.Strong, ev.Weak = c.Cat, c.Soft, c.Strong, c.Weak
|
||||
return ev, nil
|
||||
|
||||
Reference in new issue
Block a user