Security & Identity
Audit logging
Kubernetes audit logs record API requests at a level set by an ordered policy file. The first matching rule decides the level, so rule order decides what gets recorded.
What you will be able to do
- Explain how audit stages and levels change what a log entry holds.
- Decide which audit level to use for secrets and other sensitive resources.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Security & Identity
- Pod security admissionAdvanced · 4 min
Pod Security Admission applies the Pod Security Standards to a namespace through labels, and it can warn, audit or enforce. Enforce blocks new pods, so a safe rollout…
- Kubernetes network policiesAdvanced · 4 min
A NetworkPolicy selects pods and lists the traffic they may use. Once a pod is selected, only matching allow rules pass, and the rules add up across policies.
- Incident forensicsAdvanced · 4 min
Forensics collects evidence in order of volatility and preserves it with hashes and timestamps. Work from copies, not originals, and capture fragile state before any…
- Threat modelingAdvanced · 4 min
Threat modeling maps a system's parts, data flows and trust boundaries, then asks STRIDE questions at each one. The model is useful only when it changes with the design.
- KMS envelopes: operational verificationAdvanced · 4 min
Envelope encryption stores data under a data key, and stores that key encrypted under a KMS key. Checking the bucket setting is not enough, so verify the key ID stored…
- Workload identity: failure analysisAdvanced · 4 min
IRSA lets a pod assume an IAM role through a projected OIDC token, with no stored keys. Failures usually sit in the identity variables, the trust policy subject, or the…