Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

k3s-io/k3s
main @ fc53560
38
Fixes
1
CVEs
HIGH
Peak severity
42.9%
Coverage
Highlights
Denial of Service: 13 prior fixes. Scrutinize any change in this area.
pkg/agent/config: most-fixed (2 issues). Treat as high-risk during review.
17 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: Parsing logic was vulnerable to accepting kubeadm-style bootstrap tokens during standard credential extraction, allowing unauthorized client access. Secure parsing must validate token types strictly.
Denial of Service: Uninitialized core runtime structures were accessed without validation in the secrets-encrypt handlers, leading to nil pointer dereference panics on unready servers.
Privilege Escalation: Sharing highly-privileged cluster-admin credentials across distinct cluster components allowed lateral privilege escalation. Separation of concerns using dedicated RBAC roles is vital.