← All Learning Paths

Kubernetes Security Engineer

Harden Kubernetes: pod security admission, non-root containers, namespace quotas, image scanning, network segmentation, and least privilege.

roleadvanced10 nodes11h total

Path overview

加固 Kubernetes:Pod 安全准入、非 root 容器、命名空间配额、镜像扫描、网络分段与最小权限。

Harden Kubernetes: pod security admission, non-root containers, namespace quotas, image scanning, network segmentation, and least privilege.

  1. Apply "Enforce Pod Security Admission" to a kubernetes security engineer task, checking that "The namespace rejects pods that violate the restricted standard." appears after the "Enforce restricted pod security on namespaces and verify privileged pods are denied." step.

    Completion criteria: Deliver a transcript of "Enforce Pod Security Admission" with each step's command and observed state, ending at "Enforce restricted pod security on namespaces and verify privileged pods are denied.".

    Next step: Enforce a Non-Root Container User

    ⏱ 0.5h

  2. Execute "Enforce a Non-Root Container User" end to end, then repeat the last step with one parameter changed and compare "Configure images to run as a non-root numeric user and verify at runtime.".

    Prerequisites: Enforce Pod Security Admission

    Completion criteria: Show the command for every step of "Enforce a Non-Root Container User" and paste the output proving "Configure images to run as a non-root numeric user and verify at runtime."; then note the step where "The container starts as uid 10001 rather than root." appears.

    Next step: Add Namespace Resource Quotas to Stop Noisy Neighbors

    ⏱ 0.5h

  3. Run "Cap namespace-level resource consumption so one team workload cannot starve the rest of the" from "Add Namespace Resource Quotas to Stop Noisy Neighbors" and confirm the documented result "The namespace can never request more than eight CPUs, sixteen GiB of memory, or run more".

    Prerequisites: Enforce a Non-Root Container User

    Completion criteria: Run "Add Namespace Resource Quotas to Stop Noisy Neighbors" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Fail the Pipeline on Fixable Image Vulnerabilities

    ⏱ 0.5h

  4. Apply "Fail the Pipeline on Fixable Image Vulnerabilities" to a kubernetes security engineer task, checking that "Scan the image, ignore findings without a fix, and fail on high or critical severity." appears after the "Exit code 1 with a table listing each CVE, package, installed version, and fixed version." step.

    Prerequisites: Add Namespace Resource Quotas to Stop Noisy Neighbors

    Completion criteria: Run the steps through "Exit code 1 with a table listing each CVE, package, installed version, and fixed version.", paste the command output, and mark the line that matches "Scan the image, ignore findings without a fix, and fail on high or critical severity."; then rerun with one parameter changed.

    Next step: Generate and Scan an SBOM in CI

    ⏱ 0.5h

  5. Execute "Generate and Scan an SBOM in CI" end to end, then repeat the last step with one parameter changed and compare "sbom.spdx.json lists packages with names, versions, and identifiers.".

    Prerequisites: Fail the Pipeline on Fixable Image Vulnerabilities

    Completion criteria: Deliver a transcript of "Generate and Scan an SBOM in CI" with each step's command and observed state, ending at "sbom.spdx.json lists packages with names, versions, and identifiers.".

    Next step: Kubernetes Security Baseline Enforcement Workflow

    ⏱ 0.5h

  6. Follow "Kubernetes Security Baseline Enforcement Workflow" and record "Bring every workload to a declared hardening baseline (no privilege, readonly roots, capped" at the step where it should appear, using "A written rule list exists that both humans and policy engines can read." as the check.

    Prerequisites: Generate and Scan an SBOM in CI

    Completion criteria: Produce a run log for "Kubernetes Security Baseline Enforcement Workflow" that ends at "Bring every workload to a declared hardening baseline (no privilege, readonly roots, capped" and mark every step where "A written rule list exists that both humans and policy engines can read." was checked.

    Next step: Least-Privilege Review Workflow

    ⏱ 0.5h

  7. Carry out "Least-Privilege Review Workflow" on a kubernetes security engineer project, pausing at the "A complete permission inventory exists." step to verify "Inventory principals and policies: List identities, roles, and the policies attached to".

    Prerequisites: Kubernetes Security Baseline Enforcement Workflow

    Completion criteria: Deliver a transcript of "Least-Privilege Review Workflow" with each step's command and observed state, ending at "A complete permission inventory exists.".

    Next step: Network Segmentation Review Workflow

    ⏱ 1h

  8. Use "Network Segmentation Review Workflow" to decide "An intended-flow matrix exists that architecture owners sign.", then prove the outcome with "Verify that the network permits only intended flows by reconciling the intended-flow model".

    Prerequisites: Least-Privilege Review Workflow

    Completion criteria: Record the state "Verify that the network permits only intended flows by reconciling the intended-flow model" at the verification step, then paste the output of "An intended-flow matrix exists that architecture owners sign." that proves it.

    Next step: Evaluate an IAM Statement Against a Request

    ⏱ 0.5h

  9. Solve "Evaluate an IAM Statement Against a Request" for kubernetes security engineer work: turn JSON object: { policy: { effect, actions, resources }, request: { into Allow and pass both samples.

    Prerequisites: Network Segmentation Review Workflow

    Completion criteria: Attach the solution file for "Kubernetes Security Engineer", two passing sample runs, and one failing run whose error matches the contract.

    Next step: Capstone: Kubernetes Security Engineer

    ⏱ 0.5h

  10. Ship "Dual-publish window" from "Build a Secrets Rotation Service", then prove it with the project's test suite and an acceptance note.

    Prerequisites: Network Segmentation Review Workflow, Evaluate an IAM Statement Against a Request

    Completion criteria: Run the project's test command for "Build a Secrets Rotation Service", paste the passing output, and attach the acceptance note for "Dual-publish window" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h