Security & Identity
Kubernetes network policies
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.
What you will be able to do
- Explain how a pod that no policy selects is treated.
- Decide which DNS and service rules a default-deny policy needs before rollout.
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
- Linux capabilitiesAdvanced · 4 min
Linux capabilities split root's power into named parts, so a workload can get one privilege without the rest. The effective set is what counts at the moment of a…
- 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…
- Audit loggingAdvanced · 4 min
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.
- 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…